﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Xmpp: StateForge::Examples::XmppChat::ChatScenario Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                Xmpp: StateForge::Examples::XmppChat::ChatScenario Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_state_forge.html">StateForge</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples.html">Examples</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html">XmppChat</a>      </li>
      <li class="navelem"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html">ChatScenario</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="#events">Events</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">StateForge::Examples::XmppChat::ChatScenario Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="StateForge::Examples::XmppChat::ChatScenario" -->
<p><a href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a708e53fc73eb11fce440cd35c7c50b09">HasError</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#ab088f8bfb0cae4adbc5a4ae4116f30c1">ChatScenario</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#ab22b8f708be0df813446144404b6cb3a">CreateClient</a> (string user, string password, string server)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#ab8e3e7b6540b2ead0965c784ff8e3550">OpenAll</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#ae0a12619ca2cf65f077af3ffe1b515d5">CloseAll</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a6701228fc318d35aa4389402b3bf38d5">Start</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_state_forge_1_1_examples_1_1_xmpp_chat_1_1_i_chat_scenario.html">IChatScenario</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a><code> [get, set]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a3217b1b92c641f2f2d5af74690a6cafb">Error</a><code> [get, set]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#af354cef9f1302def7052b83cd73be0f3">MaxDuration</a><code> [get, set]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a120f7c5e51a9178ea2462e7f674c2e37">IdleDuration</a><code> [get, set]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a1c123dc8a19d4c8bf1a5b4ab1563e82d">SubscribeMaxDuration</a><code> [get, set]</code></td></tr>
<tr><td colspan="2"><h2><a name="events"></a>
Events</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">EndEventHandler&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a5596eb496ea91e8d5c9be8eeb0f375e9">EndHandler</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a631881dc0de2af36aebb555d538b28b5">InitializeClient</a> (<a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a> client)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a161090059d50867b5b6640bfc1d5bcd8">OnLogin</a> (Object o, Jid jid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a00e5e5dbf09760adb2331da6f133b59a">OnClose</a> (Object o, Jid jid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a3e8fda03268f13ba932894ad67996373">OnIqError</a> (Object o, Jid jid, Error <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#afaa5e47ba8257126e10972ed4efc0774">error</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a2c98de7351b137af6f8449d562671d62">OnAuthError</a> (Object o, Jid jid, Element element)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a24d501a87d6615f35f6c1180cd2eae4b">OnMessage</a> (Object o, Jid jid, Message message)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a98963e529c13e96998e4054924806123">OnPresence</a> (Object o, Jid jid, Presence presence)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#ab48f72d94cdcacdb4115864ccf0dd6b3">OnSubscribeRequest</a> (Object o, Jid jid, Jid from)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a4d24d5065f4c862f6fbb9a889a210d1d">OnSubscribeConfirm</a> (Object o, Jid jid, Jid from)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#ae61c8ed85d036ce341a4c77b4863a2ed">OnError</a> (Object o, Jid jid, System.Exception exception)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a3db25278e5782fbc9b2c8c7cd95d701f">OnRosterItem</a> (Object o, Jid jid, RosterItem item)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#aa8b36dcddbd9fa204b1ab18d749527f7">OnRosterEnd</a> (Object o, Jid jid)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a39258ad752ff798834ac19e382394742">StateMachineEnd</a> (object sender, EventArgs e)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#afaa5e47ba8257126e10972ed4efc0774">error</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Dictionary&lt; string, <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a661d4dfe6a5b3bc30dbc538f79799a38">clientMap</a> = new Dictionary&lt;string, <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a>&gt;()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a7b699d45fed7b56cbf67cef7f0365e75">numberOfClients</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9d0287bf7b5a4b026a0612340b3f0d17">numberOfClientsOpended</a></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static readonly string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9700afaaf600a5bf1327d009703d686d">traceName</a> = &quot;ChatScenario&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static TraceSource&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#aa59f33c73ae410e64c5ab95bea85a847">ts</a> = new TraceSource(<a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9700afaaf600a5bf1327d009703d686d">traceName</a>)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00016">16</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab088f8bfb0cae4adbc5a4ae4116f30c1"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::ChatScenario" ref="ab088f8bfb0cae4adbc5a4ae4116f30c1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateForge::Examples::XmppChat::ChatScenario::ChatScenario </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00052">52</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#af354cef9f1302def7052b83cd73be0f3">MaxDuration</a> = 30000;<span class="comment">/* 30 sec */</span>
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a120f7c5e51a9178ea2462e7f674c2e37">IdleDuration</a> = 100;
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a1c123dc8a19d4c8bf1a5b4ab1563e82d">SubscribeMaxDuration</a> = 5000;
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae0a12619ca2cf65f077af3ffe1b515d5"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::CloseAll" ref="ae0a12619ca2cf65f077af3ffe1b515d5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::CloseAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00092">92</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keywordflow">foreach</span> (KeyValuePair&lt;string, Client&gt; kvp <span class="keywordflow">in</span> this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a661d4dfe6a5b3bc30dbc538f79799a38">clientMap</a>)
            {
                kvp.Value.Close();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ab22b8f708be0df813446144404b6cb3a"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::CreateClient" ref="ab22b8f708be0df813446144404b6cb3a" args="(string user, string password, string server)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a> StateForge::Examples::XmppChat::ChatScenario::CreateClient </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>user</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>password</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>server</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00059">59</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            Client client = <span class="keyword">new</span> Client(user, password, server);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a631881dc0de2af36aebb555d538b28b5">InitializeClient</a>(client);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a7b699d45fed7b56cbf67cef7f0365e75">numberOfClients</a>++;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a661d4dfe6a5b3bc30dbc538f79799a38">clientMap</a>.Add(client.Jid.ToString(), client);
            <span class="keywordflow">return</span> client;
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a708e53fc73eb11fce440cd35c7c50b09"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::HasError" ref="a708e53fc73eb11fce440cd35c7c50b09" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool StateForge::Examples::XmppChat::ChatScenario::HasError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00036">36</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keywordflow">return</span> <span class="keywordtype">string</span>.IsNullOrEmpty(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#afaa5e47ba8257126e10972ed4efc0774">error</a>) == <span class="keyword">false</span>;
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a631881dc0de2af36aebb555d538b28b5"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::InitializeClient" ref="a631881dc0de2af36aebb555d538b28b5" args="(Client client)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::InitializeClient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a>&#160;</td>
          <td class="paramname"><em>client</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00068">68</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            client.LoginHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#aa3dec4381dcdb6359c8e40192991dd8f">LoginEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a161090059d50867b5b6640bfc1d5bcd8">OnLogin</a>);
            client.CloseHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#aa3760b3c8128a3bdd38d725c41246fac">CloseEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a00e5e5dbf09760adb2331da6f133b59a">OnClose</a>);
            client.RosterEndHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#a5e6cb8f84daedc7940130d2a60ac0375">RosterEndEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#aa8b36dcddbd9fa204b1ab18d749527f7">OnRosterEnd</a>);
            client.AuthErrorHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#ac4f2fd7eb91b00d045d36c50224544fc">AuthErrorEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a2c98de7351b137af6f8449d562671d62">OnAuthError</a>);
            client.MessageHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#a4f58397d7c25dcadc53b4083951d83a5">MessageEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a24d501a87d6615f35f6c1180cd2eae4b">OnMessage</a>);
            client.PresenceHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#a093daaba61bc0d1fd8709003b3a93e7b">PresenceEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a98963e529c13e96998e4054924806123">OnPresence</a>);
            client.SubscribeRequestHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#a9eec11bcd5c2ac93cd9085660aca187a">SubscribeRequestEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#ab48f72d94cdcacdb4115864ccf0dd6b3">OnSubscribeRequest</a>);
            client.SubscribeConfirmHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#a9d5fa7af49c168e253aa9144e7e6f4af">SubscribeConfirmEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a4d24d5065f4c862f6fbb9a889a210d1d">OnSubscribeConfirm</a>);
            client.ErrorHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#ada466e1de91ea6f948e6443a7ce668c1">ErrorEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#ae61c8ed85d036ce341a4c77b4863a2ed">OnError</a>);
            client.RosterItemHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#a834d9de6300f3b2080368250e708af96">RosterItemEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a3db25278e5782fbc9b2c8c7cd95d701f">OnRosterItem</a>);
            client.RosterEndHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#a5e6cb8f84daedc7940130d2a60ac0375">RosterEndEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#aa8b36dcddbd9fa204b1ab18d749527f7">OnRosterEnd</a>);
            client.IqErrorHandler += <span class="keyword">new</span> <a class="code" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html#aa1f3d1f316bc24f5b5af00fd94db5171">IqErrorEventHandler</a>(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a3e8fda03268f13ba932894ad67996373">OnIqError</a>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a2c98de7351b137af6f8449d562671d62"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnAuthError" ref="a2c98de7351b137af6f8449d562671d62" args="(Object o, Jid jid, Element element)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnAuthError </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Element&#160;</td>
          <td class="paramname"><em>element</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00130">130</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.AuthError(jid, element);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a00e5e5dbf09760adb2331da6f133b59a"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnClose" ref="a00e5e5dbf09760adb2331da6f133b59a" args="(Object o, Jid jid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnClose </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00115">115</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.Closed(jid);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9d0287bf7b5a4b026a0612340b3f0d17">numberOfClientsOpended</a>--;
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9d0287bf7b5a4b026a0612340b3f0d17">numberOfClientsOpended</a> == 0)
            {
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.ClosedAll();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ae61c8ed85d036ce341a4c77b4863a2ed"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnError" ref="ae61c8ed85d036ce341a4c77b4863a2ed" args="(Object o, Jid jid, System.Exception exception)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnError </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">System.Exception&#160;</td>
          <td class="paramname"><em>exception</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00155">155</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.Error(jid, exception);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a3e8fda03268f13ba932894ad67996373"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnIqError" ref="a3e8fda03268f13ba932894ad67996373" args="(Object o, Jid jid, Error error)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnIqError </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Error&#160;</td>
          <td class="paramname"><em>error</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00125">125</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.IqError(jid, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#afaa5e47ba8257126e10972ed4efc0774">error</a>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a161090059d50867b5b6640bfc1d5bcd8"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnLogin" ref="a161090059d50867b5b6640bfc1d5bcd8" args="(Object o, Jid jid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnLogin </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00105">105</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.LoggedIn(jid);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9d0287bf7b5a4b026a0612340b3f0d17">numberOfClientsOpended</a>++;
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9d0287bf7b5a4b026a0612340b3f0d17">numberOfClientsOpended</a> == <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a7b699d45fed7b56cbf67cef7f0365e75">numberOfClients</a>)
            {
                this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.LoggedInAll();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a24d501a87d6615f35f6c1180cd2eae4b"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnMessage" ref="a24d501a87d6615f35f6c1180cd2eae4b" args="(Object o, Jid jid, Message message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnMessage </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Message&#160;</td>
          <td class="paramname"><em>message</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00135">135</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.MessageRx(jid, message);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a98963e529c13e96998e4054924806123"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnPresence" ref="a98963e529c13e96998e4054924806123" args="(Object o, Jid jid, Presence presence)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnPresence </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Presence&#160;</td>
          <td class="paramname"><em>presence</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00140">140</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.PresenceRx(jid, presence);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="aa8b36dcddbd9fa204b1ab18d749527f7"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnRosterEnd" ref="aa8b36dcddbd9fa204b1ab18d749527f7" args="(Object o, Jid jid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnRosterEnd </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00165">165</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.RosterEnd(jid);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a3db25278e5782fbc9b2c8c7cd95d701f"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnRosterItem" ref="a3db25278e5782fbc9b2c8c7cd95d701f" args="(Object o, Jid jid, RosterItem item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnRosterItem </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RosterItem&#160;</td>
          <td class="paramname"><em>item</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00160">160</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.RosterItem(jid, item);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a4d24d5065f4c862f6fbb9a889a210d1d"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnSubscribeConfirm" ref="a4d24d5065f4c862f6fbb9a889a210d1d" args="(Object o, Jid jid, Jid from)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnSubscribeConfirm </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>from</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00150">150</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.SubscribeConfirm(jid, from);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ab48f72d94cdcacdb4115864ccf0dd6b3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OnSubscribeRequest" ref="ab48f72d94cdcacdb4115864ccf0dd6b3" args="(Object o, Jid jid, Jid from)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OnSubscribeRequest </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>jid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Jid&#160;</td>
          <td class="paramname"><em>from</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00145">145</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.SubscribeRequest(jid, from);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ab8e3e7b6540b2ead0965c784ff8e3550"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::OpenAll" ref="ab8e3e7b6540b2ead0965c784ff8e3550" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::OpenAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00084">84</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keywordflow">foreach</span> (KeyValuePair&lt;string, Client&gt; kvp <span class="keywordflow">in</span> this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a661d4dfe6a5b3bc30dbc538f79799a38">clientMap</a>)
            {
                kvp.Value.Open();
            }
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a6701228fc318d35aa4389402b3bf38d5"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::Start" ref="a6701228fc318d35aa4389402b3bf38d5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::Start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00100">100</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a49b4397be12bf24d92e8f00a6007dfd0">Context</a>.Start();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a39258ad752ff798834ac19e382394742"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::StateMachineEnd" ref="a39258ad752ff798834ac19e382394742" args="(object sender, EventArgs e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenario::StateMachineEnd </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">EventArgs&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00170">170</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <span class="keywordflow">if</span> (<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a5596eb496ea91e8d5c9be8eeb0f375e9">EndHandler</a> != null)
            {
                <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a5596eb496ea91e8d5c9be8eeb0f375e9">EndHandler</a>(<span class="keyword">this</span>, EventArgs.Empty);
            }
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a661d4dfe6a5b3bc30dbc538f79799a38"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::clientMap" ref="a661d4dfe6a5b3bc30dbc538f79799a38" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Dictionary&lt;string, <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a>&gt; <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a661d4dfe6a5b3bc30dbc538f79799a38">StateForge::Examples::XmppChat::ChatScenario::clientMap</a> = new Dictionary&lt;string, <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a>&gt;()<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00048">48</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="afaa5e47ba8257126e10972ed4efc0774"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::error" ref="afaa5e47ba8257126e10972ed4efc0774" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#afaa5e47ba8257126e10972ed4efc0774">StateForge::Examples::XmppChat::ChatScenario::error</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00022">22</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a7b699d45fed7b56cbf67cef7f0365e75"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::numberOfClients" ref="a7b699d45fed7b56cbf67cef7f0365e75" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a7b699d45fed7b56cbf67cef7f0365e75">StateForge::Examples::XmppChat::ChatScenario::numberOfClients</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00049">49</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a9d0287bf7b5a4b026a0612340b3f0d17"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::numberOfClientsOpended" ref="a9d0287bf7b5a4b026a0612340b3f0d17" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9d0287bf7b5a4b026a0612340b3f0d17">StateForge::Examples::XmppChat::ChatScenario::numberOfClientsOpended</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00050">50</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a9700afaaf600a5bf1327d009703d686d"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::traceName" ref="a9700afaaf600a5bf1327d009703d686d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">readonly string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9700afaaf600a5bf1327d009703d686d">StateForge::Examples::XmppChat::ChatScenario::traceName</a> = &quot;ChatScenario&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00045">45</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aa59f33c73ae410e64c5ab95bea85a847"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::ts" ref="aa59f33c73ae410e64c5ab95bea85a847" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TraceSource <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#aa59f33c73ae410e64c5ab95bea85a847">StateForge::Examples::XmppChat::ChatScenario::ts</a> = new TraceSource(<a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html#a9700afaaf600a5bf1327d009703d686d">traceName</a>)<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00046">46</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a49b4397be12bf24d92e8f00a6007dfd0"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::Context" ref="a49b4397be12bf24d92e8f00a6007dfd0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interface_state_forge_1_1_examples_1_1_xmpp_chat_1_1_i_chat_scenario.html">IChatScenario</a> StateForge::Examples::XmppChat::ChatScenario::Context<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00020">20</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a3217b1b92c641f2f2d5af74690a6cafb"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::Error" ref="a3217b1b92c641f2f2d5af74690a6cafb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string StateForge::Examples::XmppChat::ChatScenario::Error<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00024">24</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a120f7c5e51a9178ea2462e7f674c2e37"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::IdleDuration" ref="a120f7c5e51a9178ea2462e7f674c2e37" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int StateForge::Examples::XmppChat::ChatScenario::IdleDuration<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00042">42</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af354cef9f1302def7052b83cd73be0f3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::MaxDuration" ref="af354cef9f1302def7052b83cd73be0f3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int StateForge::Examples::XmppChat::ChatScenario::MaxDuration<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00041">41</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a1c123dc8a19d4c8bf1a5b4ab1563e82d"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::SubscribeMaxDuration" ref="a1c123dc8a19d4c8bf1a5b4ab1563e82d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int StateForge::Examples::XmppChat::ChatScenario::SubscribeMaxDuration<code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00043">43</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<hr/><h2>Event Documentation</h2>
<a class="anchor" id="a5596eb496ea91e8d5c9be8eeb0f375e9"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenario::EndHandler" ref="a5596eb496ea91e8d5c9be8eeb0f375e9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">EndEventHandler StateForge::Examples::XmppChat::ChatScenario::EndHandler</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_8cs_source.html#l00018">18</a> of file <a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_chat_scenario_8cs_source.html">ChatScenario.cs</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
